<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/reset.css">
    <style>
        .nav {
            background-color: #f00;
        }

        .nav li {
            float: left;
            margin: 5px 10px;
        }

        .nav li:after {
            content: "|";
            margin-left: 15px;
        }

        .nav li:last-child:after {
            content: '';
        }

        h3 {
            width: 200px;
            margin: 50px auto;
            line-height: 50px;
            border-bottom: 1px solid #000;
            text-align: center;
        }

        h3:after {
            /* after/before 必须结合content使用  如果没有内容  就写空着 */
            content: "";
            width: 20px;
            height: 3px;
            background-color: green;
            /* 转化为块级 */
            display: block;
            margin: auto;
            margin-bottom: -2px;
        }
    </style>
</head>

<body>

    <ul class="nav cl">
        <li>
            <a href="">小米商城</a>
        </li>
        <li>
            <a href="">小米商城</a>
        </li>
        <li>
            <a href="">小米商城</a>
        </li>
        <li>
            <a href="">小米商城</a>
        </li>
    </ul>


    <h3>家政网站</h3>

</body>

</html>